package com.usian.controller;


import com.usian.pojo.TbUser;
import com.usian.service.SSOService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/service/sso")
public class SSOController {
    @Autowired
    private SSOService ssoService;

    @RequestMapping("/checkUserInfo/{checkValue}/{checkFlag}")
    private boolean checkUserInfo(@PathVariable String checkValue,@PathVariable Integer checkFlag){
        return this.ssoService.chekUserInof(checkValue,checkFlag);
    }

    @RequestMapping("/userRegister")
    private Integer userRegister(@RequestBody TbUser user){
        return this.ssoService.userRegister(user);
    }
}
